package persistent.prestige.module.ums.model;

import java.util.Set;

import persistent.prestige.platform.base.model.Model;
import persistent.prestige.platform.security.model.Role;



/**
 * @Title:Role.java
 * @Package persistent.prestige.ums.model
 * @Description 角色表
 * @author prestigeding
 * @date 2012-12-12 下午11:25:51
 * @version V1.0
 */
public class UmsRole extends Model implements Role {
	/** 角色名称 */
	private String roleName;

	/** 角色代码 */
	private String roleCode;

	/** 角色描述 */
	private String description;

	/** 排序字段 */
	private int orderIndex;

	private Set<UmsUser> users;

	private Set<UmsPermission> perms;

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRoleCode() {
		return roleCode;
	}

	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getOrderIndex() {
		return orderIndex;
	}

	public void setOrderIndex(int orderIndex) {
		this.orderIndex = orderIndex;
	}

	public Set<UmsUser> getUsers() {
		return users;
	}

	public void setUsers(Set<UmsUser> users) {
		this.users = users;
	}
	
	
	public Set<UmsPermission> getPerms() {
		return perms;
	}

	public void setPerms(Set<UmsPermission> perms) {
		this.perms = perms;
	}

}
